<script type="text/javascript" language="javascript" charset="utf-8">
$(".menu-wrap li").removeClass("active-link");
$(".menu-wrap #goods").addClass("active");
$("#goods #info").addClass("active-link");
$("#goods #good_list a").addClass("active-link");
</script>
<div class="common-tit">
  <h2><%= @good.name %>-商品交易记录</h2>
  <span>商品系统 > 交易记录</span>
</div>
<div class="course-box">
  <h3 class="t-record">
    <i>交易记录</i>
  </h3>
  <div class="curlist-con sel-curl">
    <div class="scrollbox">
      <table>
        <thead>
          <tr>
            <th class="comd-t">时间</th>
            <th class="comd-m">购买人</th>
            <th class="comd-n">数量</th>
            <th class="comd-p">价格</th>
            <th>操作人</th>
          </tr>
        </thead>
        <tbody>

          <% for order in @orders_array %>
            <tr>
              <td class="comd-t">
                </em><%= order["time"] %></em>
              </td>
              <td><%= order["buy_name"] %></td>
              <td><%= order["amount"] %></td>
              <td><%= order["total_price"] %>元</td>
              <td><%= order["employee_name"] %></td>
            </tr>
          <% end %>
 
        </tbody>
      </table>
      <div class="apple_pagination" id="will_page">
        <%= will_paginate @orders_array, :container => false %>
      </div>
    </div>
  </div>
</div>
</div>
<script src="/assets/js/common.js"></script>
